Skip to content

fix(server): a browser paired through the relay can lift a moved thread's fence - #989

Merged
badcuban merged 1 commit into
mainfrom
fix/sent-from-relay-browsers
Nov 18, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/sent-from-relay-browsers

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

A thread that moves from another computer arrives fenced, and only a person's own message lifts the fence. A browser paired through the hosted relay never could: its messages got no "sent from" device record, because the relay records a browser's device type as unknown.

The device kind is now decided in one place (sessionDeviceKind). A relay-paired browser counts as a computer. Linked computers, CLI tokens, script-like sign-ins, and other unknown sessions still count as nothing. The "is the user at a computer" check uses the same rule. Tests cover the decider fence and the real WebSocket stamping.

…ad's fence

A thread that moved here stays fenced from Threadlines tools until a person
here sends it a message, proven by the message's server-stamped sentFrom. A
browser paired through the relay never got one: RelayHost records its
"browser" pairing kind as deviceType "unknown", and messageSentFromClient
returned nothing for an unknown device. Its user stayed fenced for good.

sessionDeviceKind now decides a session's device kind in one place, from the
session's role, subject and client record: a relay-paired browser is a
computer (as sessionIsComputer already said), while a linked computer
(peer), a CLI-issued or script-like sign-in (bot) and one that said nothing
about itself (unknown, not relay) get no sentFrom. messageSentFromSession
replaces messageSentFromClient, and sessionIsComputer reuses the same rule.
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 18, 2026 4:43am UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 18, 2026
@badcuban
badcuban added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 728ea07 Nov 18, 2026
24 checks passed
@badcuban
badcuban deleted the fix/sent-from-relay-browsers branch November 18, 2026 05:25

This branch was previously deployed

1 inactive deployment
Preview — 88eb5256 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant